package jsyf.oa.dao.doc;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.doc.FileTypeEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;


/**
 * Created by Maqiuqiu on 2018/4/24.
 */
@Repository
public class FileTypeDao extends BaseDao {

    public FileTypeDao() {

        this.iBaseEntity = new FileTypeEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, FileTypeEntity.class);
    }

}
